import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue')
    },
    // 01
    {
      path: '/quick-start',
      name: 'StartedPage',
      component: () => import('../views/grid-docs/get-started/started.vue')
    },
    // 02
    {
      path: '/showing-data',
      name: 'ShowingData',
      component: () => import('../views/grid-docs/get-started/showing-data.vue')
    },
    // 03
    {
      path: '/working-with-data',
      name: 'WorkingWithData',
      component: () => import('../views/grid-docs/get-started/working-with-data.vue')
    },
    // 04
    {
      path: '/custom-theme',
      name: 'CustomTheme',
      component: () => import('../views/grid-docs/get-started/custom-theme.vue')
    },
    // 05
    {
      path: '/cell-row-style',
      name: 'CellRowStyle',
      component: () => import('../views/grid-docs/get-started/cell-row-style.vue')
    },
    // 06
    {
      path: '/create-a-grid',
      name: 'CreateAGrid',
      component: () => import('../views/grid-docs/quick-start/create-grid.vue')
    },
    // 07
    {
      path: '/load-new-data',
      name: 'LoadNewData',
      component: () => import('../views/grid-docs/quick-start/load-new-data.vue')
    },
    // 08
    {
      path: '/configure-columns',
      name: 'ConfigureColumns',
      component: () => import('../views/grid-docs/quick-start/configure-columns.vue')
    }
  ]
})

export default router
